home *** CD-ROM | disk | FTP | other *** search
/ Clickx 13 / Clickx 13.iso / pc / start.exe / start.dxr / 00038_miawButton.ls < prev    next >
Encoding:
Text File  |  2001-04-17  |  849 b   |  37 lines

  1. on mouseDown me
  2.   global gButtonDN
  3.   gButtonDN = me
  4.   set the castLibNum of sprite the spriteNum of me to castLib("butDN").number
  5.   updateStage()
  6. end
  7.  
  8. on mouseUp me
  9.   global gButtonDN
  10.   gButtonDN = 0
  11.   set the castLibNum of sprite the spriteNum of me to castLib("butN").number
  12.   open(window("ReadME"))
  13.   updateStage()
  14. end
  15.  
  16. on mouseUpOutSide me
  17.   global gButtonDN
  18.   gButtonDN = 0
  19.   set the castLibNum of sprite the spriteNum of me to castLib("butN").number
  20.   updateStage()
  21. end
  22.  
  23. on mouseEnter me
  24.   global gButtonDN
  25.   if gButtonDN = me then
  26.     set the castLibNum of sprite the spriteNum of me to castLib("butDN").number
  27.   else
  28.     set the castLibNum of sprite the spriteNum of me to castLib("butRO").number
  29.   end if
  30.   updateStage()
  31. end
  32.  
  33. on mouseLeave me
  34.   set the castLibNum of sprite the spriteNum of me to castLib("butN").number
  35.   updateStage()
  36. end
  37.